const baseUrl = 'http://47.98.146.179:8080/renren-admin';

const http = function(options){
	return uni.request({
		url: baseUrl + options.url,
		method: options.method || "GET",
		header: {
			'token': uni.getStorageSync('token'),
		},
		data: options.data  || {},
		responseType: options.responseType || ''
	})
};

export default http;